package com.ivanceras.shared.db;

public class PolymorphicModel {

	String namespace;
	String modelName; /** table name */
	String entityAttribute; /** the column which stores the table name/ model name */
	String recordAttribute; /**  the column that stores the record of a certain table defined in entityAttribute*/
	String[] coverage; /**listing of applicable table for the entity attribute */

	public String getNamespace() {
		return namespace;
	}

	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	
	public PolymorphicModel(String modelName, String entityAttribute, String recordAttribute){
		this.modelName = modelName;
		this.entityAttribute = entityAttribute;
		this.recordAttribute = recordAttribute;
	}

	public String[] getCoverage() {
		return coverage;
	}

	public void setCoverage(String[] coverage) {
		this.coverage = coverage;
	}

	public String getModelName() {
		return modelName;
	}

	public void setModelName(String modelName) {
		this.modelName = modelName;
	}

	public String getEntityAttribute() {
		return entityAttribute;
	}

	public void setEntityAttribute(String entityAttribute) {
		this.entityAttribute = entityAttribute;
	}

	public String getRecordAttribute() {
		return recordAttribute;
	}

	public void setRecordAttribute(String recordAttribute) {
		this.recordAttribute = recordAttribute;
	}
}
